From: Alex Schroeder Date: Wed, 1 Feb 2006 19:26:18 +0000 (+0000) Subject: (rmail-convert-mbox-format): Handle mails without subject. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~8790^2~38 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=7ab790b80472bddbe91bd8d5d022daf5be6b5eda;p=emacs.git (rmail-convert-mbox-format): Handle mails without subject. --- diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 3c2c29ec985..1ac64f217cd 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -1995,8 +1995,9 @@ non-nil then do not show any progress messages." ;; Convert encoded-words in from and subject (dolist (header '("From" "Subject")) (let ((value (rmail-header-get-header header))) - (rmail-header-add-header - header (mail-decode-encoded-word-string value)))) + (when value + (rmail-header-add-header + header (mail-decode-encoded-word-string value))))) ;; Convert quoted printable transfer encoding because it ;; is easy to do. (let ((encoding (rmail-header-get-header